function sendRequest() {
  // Content-Type: application/x-www-form-urlencoded
  const params = new URLSearchParams({
    name: '张智琦',
    age: 18
  })

  axios
    .post('http://127.0.0.1/api/post/x-www-form-urlencoded', params)
    .then(res => {
      console.log(res.status)
      console.log(res.data)
    })
    .catch(err => {
      console.log(err)
    })
}
